#pragma once


// CChoiceWindow dialog
#include "QuestionWindow.h"

#include "Core\QuestionAndAnswer.h"
#include "Poco\SharedPtr.h"

#include <vector>

class CChoiceWindow : public CQuestionWindow
{
    DECLARE_DYNAMIC(CChoiceWindow)

public:
    CChoiceWindow(CWnd* pParent = NULL);   // standard constructor
    virtual ~CChoiceWindow();

// Dialog Data
    enum { IDD = IDD_ChoiceQuestion };

protected:
    std::vector<ExamSystem::CChoiceQuestion> m_questions;
    std::vector<Poco::SharedPtr<CStatic> > m_questionTitles;
    std::vector<std::vector<Poco::SharedPtr<CButton> > > m_options;


protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

    DECLARE_MESSAGE_MAP()
public:
    virtual BOOL OnInitDialog();
protected:
    virtual void OnOK();
    virtual void OnCancel();
    void afx_msg OnRadioBtnClicked(UINT nID);
public:
    virtual void ShowQuestion(void);
    virtual void SaveAndHide(void);
    virtual void Initialize(void);
};
